import { getPartnerInfo } from "@/api/partner";
export const PARTNER_INFO = "PARTNER_INFO";
export default {
  namespaced: true,
  state: {
    PartnerInfo: {}
  },
  mutations: {
    [PARTNER_INFO](state, data) {
      state.PartnerInfo = data;
    }
  },
  actions: {
    [PARTNER_INFO]({ commit }, data) {
      const ret = getPartnerInfo();
      ret.then(({ data }) => {
        commit(PARTNER_INFO, data);
      });
      return ret;
    }
  }
};
